package zy3;

public class Test {
    public static void main(String[] args) {
        Printer printer1 = new DotMatrixPrinter();
        printer1.print();

        Printer printer2 = new InkpetPringter();
        printer2.print();

        Printer printer3 = new LaserPrinter();
        printer3.print();
    }
}
